package fr.aracore.domotique.zapi.model.impl;

import fr.aracore.domotique.zapi.model.Sensor;

public class KwhSensorDescriptor extends SensorDescriptor {

	@Override
	public String tag() {
		return "kwh";
	}

	@Override
	public String libelle() {
		return "energy";
	}

	@Override
	public String stateDescriptionForSensor(Sensor sensor) {
		long lcLong=(long)Double.parseDouble(sensor.value())*100;
		return (lcLong/100.0)+" kWh";

	}

}
